<?php
$title = '支行';
$this->headTitle($title);
?>
<h1><?php echo $this->escapeHtml($title . '管理'); ?></h1>
<hr>
<table class="table table-hover table-striped">
    <tr>
        <th>支行号</th>
        <th>支行名</th>
        <th>城市</th>
        <th>资产额</th>
        <th>账户</th>
        <th>贷款</th>
        <th>职工</th>
    </tr>
    <?php foreach ($this->bank as $key => $bank) { ?>
        <tr>
            <td><?php echo $bank['bank_id']; ?></td>
            <td><?php echo $bank['bank_name']; ?></td>
            <td><?php echo $bank['bank_city']; ?></td>
            <td><?php echo $bank['bank_assets']; ?></td>
            <td>
                <a href="<?php echo $this->url("bank/default", array("controller" => "bank", "action" => "account", "id" => $bank['bank_id'])); ?>">查看</a>
            </td>
            <td>
                <a href="<?php echo $this->url("bank/default", array("controller" => "bank", "action" => "loan", "id" => $bank['bank_id'])); ?>">查看</a>
            </td>
            <td>
                <a href="<?php echo $this->url("bank/default", array("controller" => "bank", "action" => "staff", "id" => $bank['bank_id'])); ?>">查看</a>
            </td>
        </tr>
    <?php } ?>
</table>